{template "header.html"}
<div class="note note-danger">
    <p>{dr_lang('设置管理员角色的级别，比如用户组组1的文章只能被管理员A看到')}</p>
    <p>{dr_lang('如果有一项满足未勾选条件，就表示此用户组不被管理员所管理')}</p>
</div>
<form class="form-horizontal myfbody" id="myform">
    {dr_form_hidden()}
    <div class="table-scrollable ">
        <table class="table table-striped table-bordered  table-checkable dataTable">
            <thead>
            <tr class="heading">
                <th width="300">{dr_lang('用户组')}</th>
                <th>{dr_lang('所属管理组')}</th>
            </tr>
            </thead>
            <tbody>
            {loop $group $i $t}
            <tr class="odd gradeX">
                <td>{$t.name}</td>
                <td>
                    {loop $auth $a}
                    {if $a['id'] > 1 && !$a['application']['tid']}
                    <label class="mt-checkbox mt-checkbox-outline"><input <?php echo (!isset($value[$t['id']][$a['id']]) ? 'checked' : '');?> type="checkbox" name="data[{$t['id']}][{$a['id']}]" value="1"/> {$a['name']} <span></span> </label>&nbsp;&nbsp;
                    {/if}
                    {/loop}
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>
    </div>
    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000')" class="btn green"> <i class="fa fa-save"></i> {dr_lang('保存')}</button>
        </div>
    </div>
</form>

{template "footer.html"}